package com.itsu.admin.model;

import com.itsu.admin.valid.SelectGroup;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.validation.constraints.NotBlank;

/**
 * @author Jerry.su
 * @Date 2022/1/2 16:49
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class PageReq {

    @NotBlank(groups = SelectGroup.class, message = "page can not be null or empty")
    private int page;
    @NotBlank(groups = SelectGroup.class, message = "limit can not be null or empty")
    private int limit;
}
